package com.example.array;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;

import java.util.Arrays;

public class ArrayDemo {

    public static void main(String[] args) {
        int[] a = {1,3,5,7,9,11};
        int[] b = new int[a.length+1];
        System.arraycopy(a,0,b,0,3);
        b[3] =4;
        System.arraycopy(a,3,b,4,b.length-4);
        System.out.println(Arrays.toString(b));
        Snowflake snowflake = IdUtil.getSnowflake(1, 1);
    }
}



